package lesson3_2;

public class Student extends Person {
    private String stuId;


    public Student(){
        //在子类的构造方法中，第一行默认会有
        super();
        System.out.println("Student()....");

    }
//
    public Student(String stuId){
        super();
        this.stuId = stuId;
    }
//
//    public Student(String name,int age,String sex,String stuId){
////        setName(name);
////        setAge(age);
////        setSex(sex);
//        //super(name,age,sex);
//        this.stuId = stuId;
//        System.out.println("Student(String name,int age,String sex,String stuId)");
//    }

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }
}
